#!/usr/bin/env python
# encoding: utf-8
# @author: Lin Han
# @contact: voldemort22@126.com
# @file: responseModels.py
# @time: 2021/3/23 13:09
# @desc:
from typing import Dict, Optional

from pydantic import BaseModel


class ResponseBase(BaseModel):
    status: int


class ResponseBool(ResponseBase):
    data: bool


class ResponseStr(ResponseBase):
    data: str


class ResponseDict(ResponseBase):
    data: Dict


class ResponseModel(BaseModel):
    message: str
    number: str


class ParameterResponseModel(ResponseModel):
    PartCatPartAddress: Optional[str]


class ClampResponseModel(ResponseModel):
    ClampCatPartAddress: Optional[str]


class PartResponseModel(ResponseModel):
    PartCatPartAddress: Optional[str]
